package com.zwr.mvpdemo;

import android.os.Bundle;
import android.view.View;
import com.zwr.mvpdemo.base.BaseActivity;

/**
 * 基本模板 MVP 项目
 */

public class MainActivity extends BaseActivity<MainActivity,MainPresenter> implements MainInterface{


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

    }

    @Override
    protected MainPresenter createPresenter() {

        return new MainPresenter(this);
    }


    /**
     * view的回调方法
     */
    @Override
    public void show() {
        //显示加载框   显示toast
    }

    @Override
    public void dis() {
        //隐藏加载
    }


    public void btnClick(View view) {


        mPresenter.startLogin("名字","密码");
    }
}
